import {useTokenStore} from "@/Stores/token";
import request from '@/utils/request.js'
export const customerListService =(params)=>{
    const tokenStore = useTokenStore();
    return request.get('/customer',{params:params})
}
export  const updateCustomerService = (CustomerModel)=>{
    return request.put('/customer',CustomerModel)
}
export  const AddCustomerService = (articleModel)=>{
    return request.post('/customer',articleModel)
}
export const deleteCustomerService = (id)=>{
    return request.delete('/customer?id='+id)
}